package org.future.task.redis.cluster;

import java.util.List;
import java.util.concurrent.Executor;

/**
 * @author Dongwei-Chen
 * @Date 2023/12/13 9:29
 * @Description 异步查询
 */
public interface AsyncClusterCommand<K, V> {

    void batchExecutorAsync(List<K> batch, AsyncClusterAbstract<K, V> asyncCommandAbstract, Executor executor);

    void batchExecutorAsync(List<K> batch, AsyncClusterAbstract<K, V> asyncCommandAbstract);

    void batchExecutorSync(List<K> batch, AsyncClusterAbstract<K, V> asyncCommandAbstract);

    void batchFlowSync(List<K> batch, AsyncClusterAbstract<K, V> asyncCommandAbstract);

}
